<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateExtraServiceTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('extra_service', function (Blueprint $table) {
            $table->increments('id');
            $table->unsignedInteger('uid')->default(0)->comment('用户id');
            $table->unsignedInteger('service_id')->nullable()->comment('归属站点');
            $table->string('start_time')->comment('预约送达开始时间');
            $table->string('end_time')->comment('预约结束结束时间');
            $table->string('start_date')->comment('预约送达开始时间');
            $table->string('end_date')->comment('预约结束结束时间');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('extra_service');
    }
}
